﻿using Shop.RemoteModel.ActivityDiscount;
using Shop.RemoteModel.ActivityDiscount.Model;
using Shop.StoreGatewayModular.Interface;

namespace Shop.StoreGatewayModular.Service
{
    internal class ActivityDiscountService : IActivityDiscountService
    {
        public void Set (long activityId, DiscountSet dis)
        {
            new SetActivityDiscount
            {
                ActivityId = activityId,
                Discount = dis
            }.Send();
        }
        public DiscountSet Get (long activityId)
        {
            return new GetActivityDiscount
            {
                ActivityId = activityId,
            }.Send();
        }
    }
}
